package com.service;

import com.dao.WorkingMapper;
import com.dao.impl.WorkingDaoImpl;
import com.entity.Working;

import java.util.List;

public class WorkingService {

    WorkingMapper workingMapper = new WorkingDaoImpl();

    public List<Working> getListInfos() {
        return  workingMapper.getListInfos();
    }

    public int addInfos(Working working) {
        return workingMapper.addInfos(working);
    }

    public int getListInfoCount(String title) {
        return workingMapper.getListInfoCount(title);
    }

    public Working getListInfosById(Integer id) {
        return  workingMapper.getListInfosById(id);
    }
}
